
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TIni_EmpWorkingExpManager : BaseManager
    {
        #region private field

        private static TIni_EmpWorkingExpManager manager;
        #endregion

        #region Properties
        
        public String EmpID
        {
            get { return GetConfig<String>("EmpID"); }
            set { SetConfig<String>("EmpID", value); }
        }
        
        public String ExpID
        {
            get { return GetConfig<String>("ExpID"); }
            set { SetConfig<String>("ExpID", value); }
        }
        
        public String StartDate
        {
            get { return GetConfig<String>("StartDate"); }
            set { SetConfig<String>("StartDate", value); }
        }
        
        public String EndDate
        {
            get { return GetConfig<String>("EndDate"); }
            set { SetConfig<String>("EndDate", value); }
        }
        
        public String CorpName
        {
            get { return GetConfig<String>("CorpName"); }
            set { SetConfig<String>("CorpName", value); }
        }
        
        public String WorkingDept
        {
            get { return GetConfig<String>("WorkingDept"); }
            set { SetConfig<String>("WorkingDept", value); }
        }
        
        public String Position
        {
            get { return GetConfig<String>("Position"); }
            set { SetConfig<String>("Position", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TIni_EmpWorkingExpManager
        /// </summary>
        private TIni_EmpWorkingExpManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TINI_EMPWORKINGEXP_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TINI_EMPWORKINGEXP_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TIni_EmpWorkingExpManager Instance

        /// <summary>
        /// TIni_EmpWorkingExpManager's Instance
        /// </summary>
        public static TIni_EmpWorkingExpManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TIni_EmpWorkingExpManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
